<template>
  <div class="detail">
    <van-nav-bar
      title="标题"
      left-text="返回"
      right-text="按钮"
      left-arrow
      @click-left="onClickLeft"
      @click-right="onToSearch"
    ><
  </div>
</template>

<script>
export default {
  name: "Detail",
  methods: {
    onClickLeft() {
      this.$router.back()
    },
    onToSearch() {
      this.$router.push({ path: "/search" });
    },
  },
  created() {
    console.log(this.$route.query);
  }
};
</script>

<style lang="less" scoped>
</style>
